package sword.T27;

import util.TreeNode;

/**
 * @Author: 18362
 * @Create: 2022-04-01 12:06:45 星期五
 */
class Solution {
    public TreeNode mirrorTree(TreeNode root) {
        if (root != null) {
            TreeNode temp = mirrorTree(root.left);
            root.left = mirrorTree(root.right);
            root.right = temp;
        }
        return root;
    }
}